package com.orm.test;

import com.orm.base.MyMapper;
import com.orm.base.wrapper.MyLambdaQueryWrapper;

import java.util.List;

public interface StudentMapper extends MyMapper<StudentEntity> {

    default List<StudentEntity> selectByName(String name) {
        MyLambdaQueryWrapper<StudentEntity> queryWrapper = new MyLambdaQueryWrapper<>();
        queryWrapper.eq(StudentEntity::getName, name);
        return selectList(queryWrapper);
    }

}
